<template>
  <div>
       <!-- 轮播图 -->
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item class="my-swipe-item" v-for="(item,index) in data" :key="index">
            <a :href="item.link_url" target="_blank"><img :src="item.img"/></a>
        </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
    props:['data']
}
</script>

<style lang="less" scoped>
    .my-swipe{
        width:100%;
        height:130px;
        img{
            width: 100%;
            height: 100%;
        }
    }
</style>